package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosSysGoodsStoreConn entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_sys_goods_store_conn", catalog = "ios")
public class IosSysGoodsStoreConn implements java.io.Serializable {

	// Fields

	private Long goodsStoreConnId;
	private Long goodsId;
	private Long storehouseId;
	private Long createUserId;
	private String createUserName;
	private Long bizUserId;
	private String bizUserName;
	private Integer goodsNum;
	private Integer goodsAmount;
	private Integer isChecked;
	private String version;

	// Constructors

	/** default constructor */
	public IosSysGoodsStoreConn() {
	}

	/** minimal constructor */
	public IosSysGoodsStoreConn(Long goodsId, Long storehouseId) {
		this.goodsId = goodsId;
		this.storehouseId = storehouseId;
	}

	/** full constructor */
	public IosSysGoodsStoreConn(Long goodsId, Long storehouseId,
			Long createUserId, String createUserName, Long bizUserId,
			String bizUserName, Integer goodsNum, Integer goodsAmount,
			Integer isChecked, String version) {
		this.goodsId = goodsId;
		this.storehouseId = storehouseId;
		this.createUserId = createUserId;
		this.createUserName = createUserName;
		this.bizUserId = bizUserId;
		this.bizUserName = bizUserName;
		this.goodsNum = goodsNum;
		this.goodsAmount = goodsAmount;
		this.isChecked = isChecked;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "goods_store_conn_id", unique = true, nullable = false)
	public Long getGoodsStoreConnId() {
		return this.goodsStoreConnId;
	}

	public void setGoodsStoreConnId(Long goodsStoreConnId) {
		this.goodsStoreConnId = goodsStoreConnId;
	}

	@Column(name = "goods_id", nullable = false)
	public Long getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "storehouse_id", nullable = false)
	public Long getStorehouseId() {
		return this.storehouseId;
	}

	public void setStorehouseId(Long storehouseId) {
		this.storehouseId = storehouseId;
	}

	@Column(name = "create_user_id")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_user_name", length = 100)
	public String getCreateUserName() {
		return this.createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Column(name = "biz_user_id")
	public Long getBizUserId() {
		return this.bizUserId;
	}

	public void setBizUserId(Long bizUserId) {
		this.bizUserId = bizUserId;
	}

	@Column(name = "biz_user_name", length = 100)
	public String getBizUserName() {
		return this.bizUserName;
	}

	public void setBizUserName(String bizUserName) {
		this.bizUserName = bizUserName;
	}

	@Column(name = "goods_num")
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "goods_amount")
	public Integer getGoodsAmount() {
		return this.goodsAmount;
	}

	public void setGoodsAmount(Integer goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	@Column(name = "is_checked")
	public Integer getIsChecked() {
		return this.isChecked;
	}

	public void setIsChecked(Integer isChecked) {
		this.isChecked = isChecked;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}